<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OFFICEONLINE</title>
<script type="text/javascript" language="javascript" src="testOfficeOnline.js"></script>
<LINK href="test.css" type=text/css rel=stylesheet>
</head>
<body onbeforeunload="beforeLoad();" onunload="UnLoad();">
<TABLE class=TBStyle height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
	  <TBODY>
	  	<TR>
	    	<TD class=TDTitleStyle align=right></TD>
	 	</TR>
	  	<TR height="90%">
	   		<TD class=TDTitleStyle vAlign=top align=right width = "10%">
				<input type="button" value="打开本地文档" onClick="return openDoc();"></br>
				<input type="button" value="新建文档" onClick="return newDoc();">
				<input type="button" value="新建word" onClick="return openWord();">
				<input type="button" value="新建Excel" onClick="return openExcel();">
				<input type="button" value="新建PPT" onClick="return openPPT();">
				<input type="button" value="新建Visio" onClick="return openVisio();">
				<input type="button" value="保存文档" onClick="return saveCopyDoc();">
				<input type="button" value="关闭文档" onClick="return closeDoc();">
				<input type="button" value="打开服务器上的文档" onClick="return openServerFile();">
				<input type="button" value="保存到服务器" onClick="return saveFileToServer();">
				<input type="button" value="打印设置" onClick="return printDes();">
				<input type="button" value="打印" onClick="return print();">
				<input type="button" value="打印预览" onClick="return prePrint();">
				<input type="button" value="退出打印预览" onClick="return prePrintExit();">
				<input type="button" value="文件属性" onClick="return attribute();">
				<input type="button" value="文件是否保存" onClick="return isSave();">
				<input type = "button" value="ddd" onClick="return aa();">
	    	</TD>
		    <TD class=TDStyle width="90%" height="100%">
		    	<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 height="100%">
		        	<TBODY>
				    	<TR>
				      		<TD bgColor=menu height="100%">
				       	    	<object  classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57"
									codeBase="dsoframer.ocx#version=2,3,0,1" id="oframe" name="oframe" width="100%" height="600">
										<param name="BorderStyle" value="0">
										<param name="TitlebarColor" value="52479">
										<param name="Titlebar" value="0">
										<param name="TitlebarTextColor" value="1">
										<param name="Menubar" value="1">
										<param name="Toolbars" value="1">
								</object>
				    		</TD>
				   		 </TR>
		       		 </TBODY>
		      	</TABLE>
		    </TD>
	 	 </TR>
	</TBODY>
</TABLE>

<!--div id = "right" algin = "right">
	<table width="100%" height="95%" cellpadding="0" cellspacing="0"
		border="0">
		<tr>
			<td valign="top" width="100%">
				<table width="100%" height="100%" cellspacing="0" cellpadding="0"
					border="0">
					<tr>
						<td valign="top"><object
								classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57"
								codeBase="dsoframer.cab" id="oframe" name="oframe" width="500px"
								height="500px">
								<param name="BorderStyle" value="1">
								<param name="TitlebarColor" value="52479">
								<param name="Titlebar" value="1">
								<param name="TitlebarTextColor" value="1">
								<param name="Menubar" value="1">
								<param name="Toolbars" value="1">
							</object>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div-->
	
	<form action="../upLoadFile" name="fileForm" method="post" enctype="multipart/form-data" style="display:none">
		<input type="file" name="file" id="file" value="c:\\dsoframer.ocx">
		<input type="submit" value="submit">
	</form>
</body>
<script type="text/javascript" language="javascript">
	var dsoFrame = document.all.oframe; 
	var MAP_C_SERVER_URL = 
		(function getServerUrl() {
			var path = document.location.protocol + '//' + 
					   document.location.host + 
					   document.location.pathname.substring(0,
					   document.location.pathname.lastIndexOf("/"));
			return path; })(); 
	var docType; // 0 word 1 excel 2 ppt
</script>
</html>